﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/5 15:22:00
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_SafetyAssessment", new string[] { "Sa_ID" })]
    public class ScmSafetyassessmentInfo : BaseEntity
    {
        public ScmSafetyassessmentInfo()
        {

        }


        private string _saId;
        /// <summary>
        /// 安全考核主键
        /// </summary>
        [ColumnMap("Sa_ID", System.Data.DbType.String)]
        public string Sa_ID
        {
            get { return _saId; }
            set
            {
                if (object.Equals(this._saId, value) != true)
                {
                    this._saId = value;
                    this.RaisePropertyChanged("Sa_ID");
                }
            }
        }


        private string _scdId;
        /// <summary>
        /// 考核类型主键
        /// </summary>
        [ColumnMap("Scd_ID", System.Data.DbType.String)]
        public string Scd_ID
        {
            get { return _scdId; }
            set
            {
                if (object.Equals(this._scdId, value) != true)
                {
                    this._scdId = value;
                    this.RaisePropertyChanged("Scd_ID");
                }
            }
        }


        private string _scdName;
        /// <summary>
        /// 考核类型
        /// </summary>
        [ColumnMap("Scd_Name", System.Data.DbType.String)]
        public string Scd_Name
        {
            get { return _scdName; }
            set
            {
                if (object.Equals(this._scdName, value) != true)
                {
                    this._scdName = value;
                    this.RaisePropertyChanged("Scd_Name");
                }
            }
        }

        private string _saTitle;
        /// <summary>
        /// 考核标题
        /// </summary>
        [ColumnMap("Sa_Title", System.Data.DbType.String)]
        public string Sa_Title
        {
            get { return _saTitle; }
            set
            {
                if (object.Equals(this._saTitle, value) != true)
                {
                    this._saTitle = value;
                    this.RaisePropertyChanged("Sa_Title");
                }
            }
        }


        private int _saDepartmentid;
        /// <summary>
        /// 考核部门ID
        /// </summary>
        [ColumnMap("Sa_DepartmentID", System.Data.DbType.Int32)]
        public int Sa_DepartmentID
        {
            get { return _saDepartmentid; }
            set
            {
                if (object.Equals(this._saDepartmentid, value) != true)
                {
                    this._saDepartmentid = value;
                    this.RaisePropertyChanged("Sa_DepartmentID");
                }
            }
        }


        private string _saDepartmentname;
        /// <summary>
        /// 考核部门名称
        /// </summary>
        [ColumnMap("Sa_DepartmentName", System.Data.DbType.String)]
        public string Sa_DepartmentName
        {
            get { return _saDepartmentname; }
            set
            {
                if (object.Equals(this._saDepartmentname, value) != true)
                {
                    this._saDepartmentname = value;
                    this.RaisePropertyChanged("Sa_DepartmentName");
                }
            }
        }


        private DateTime _saAssessmenttime;
        /// <summary>
        /// 考核日期
        /// </summary>
        [ColumnMap("Sa_AssessmentTime", System.Data.DbType.DateTime)]
        public DateTime Sa_AssessmentTime
        {
            get { return _saAssessmenttime; }
            set
            {
                if (object.Equals(this._saAssessmenttime, value) != true)
                {
                    this._saAssessmenttime = value;
                    this.RaisePropertyChanged("Sa_AssessmentTime");
                }
            }
        }


        private string _saRemark;
        /// <summary>
        /// 考核备注
        /// </summary>
        [ColumnMap("Sa_Remark", System.Data.DbType.String)]
        public string Sa_Remark
        {
            get { return _saRemark; }
            set
            {
                if (object.Equals(this._saRemark, value) != true)
                {
                    this._saRemark = value;
                    this.RaisePropertyChanged("Sa_Remark");
                }
            }
        }


        private int _saCreateuserid;
        /// <summary>
        /// 创建人ID
        /// </summary>
        [ColumnMap("Sa_CreateUserID", System.Data.DbType.Int32)]
        public int Sa_CreateUserID
        {
            get { return _saCreateuserid; }
            set
            {
                if (object.Equals(this._saCreateuserid, value) != true)
                {
                    this._saCreateuserid = value;
                    this.RaisePropertyChanged("Sa_CreateUserID");
                }
            }
        }


        private string _saCreatename;
        /// <summary>
        /// 创建人名称
        /// </summary>
        [ColumnMap("Sa_CreateName", System.Data.DbType.String)]
        public string Sa_CreateName
        {
            get { return _saCreatename; }
            set
            {
                if (object.Equals(this._saCreatename, value) != true)
                {
                    this._saCreatename = value;
                    this.RaisePropertyChanged("Sa_CreateName");
                }
            }
        }


        private DateTime _saCreatetime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [ColumnMap("Sa_CreateTime", System.Data.DbType.DateTime)]
        public DateTime Sa_CreateTime
        {
            get { return _saCreatetime; }
            set
            {
                if (object.Equals(this._saCreatetime, value) != true)
                {
                    this._saCreatetime = value;
                    this.RaisePropertyChanged("Sa_CreateTime");
                }
            }
        }


        private int _saModifyuserid;
        /// <summary>
        /// 修改人ID
        /// </summary>
        [ColumnMap("Sa_ModifyUserID", System.Data.DbType.Int32)]
        public int Sa_ModifyUserID
        {
            get { return _saModifyuserid; }
            set
            {
                if (object.Equals(this._saModifyuserid, value) != true)
                {
                    this._saModifyuserid = value;
                    this.RaisePropertyChanged("Sa_ModifyUserID");
                }
            }
        }


        private string _saModifyname;
        /// <summary>
        /// 修改人名称
        /// </summary>
        [ColumnMap("Sa_ModifyName", System.Data.DbType.String)]
        public string Sa_ModifyName
        {
            get { return _saModifyname; }
            set
            {
                if (object.Equals(this._saModifyname, value) != true)
                {
                    this._saModifyname = value;
                    this.RaisePropertyChanged("Sa_ModifyName");
                }
            }
        }


        private DateTime _saModifytime;
        /// <summary>
        /// 修改时间
        /// </summary>
        [ColumnMap("Sa_ModifyTime", System.Data.DbType.DateTime)]
        public DateTime Sa_ModifyTime
        {
            get { return _saModifytime; }
            set
            {
                if (object.Equals(this._saModifytime, value) != true)
                {
                    this._saModifytime = value;
                    this.RaisePropertyChanged("Sa_ModifyTime");
                }
            }
        }


        private byte[] _saTimestamp;
        /// <summary>
        /// 时间戳
        /// </summary>
        [ColumnMap("Sa_TimeStamp", System.Data.DbType.Binary)]
        public byte[] Sa_TimeStamp
        {
            get { return _saTimestamp; }
            set
            {
                if (object.Equals(this._saTimestamp, value) != true)
                {
                    this._saTimestamp = value;
                    this.RaisePropertyChanged("Sa_TimeStamp");
                }
            }
        }

        private int _saState;
        /// <summary>
        ///状态（0=未上报得分，1=已上报）
        /// </summary>
        [ColumnMap("Sa_State", System.Data.DbType.Int32)]
        public int Sa_State
        {
            get { return _saState; }
            set
            {
                if (object.Equals(this._saState, value) != true)
                {
                    this._saState = value;
                    this.RaisePropertyChanged("Sa_State");
                }
            }
        }
    }
}



